package org.example.jccluboss.adapter;

import lombok.SneakyThrows;
import org.example.jccluboss.util.MinioUtil;
import org.springframework.beans.factory.annotation.Value;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * @author 啊昌
 * @date 2025/4/17 22:42
 * MinioStorageAdapter minioIO存储适配器
 */
public class MinioStorageAdapter  implements StorageAdapter{


	@Resource
	private MinioUtil minioUtil;

	/**
	 * minioUrl
	 */
	@Value("${minio.url}")
	private String url;

	@Override
	@SneakyThrows
	public List<String> getAllBucket() {
		return minioUtil.getAllBucket();
	}
}
